<?php

require_once 'common/conn.php';
$data = array();
if (isset($_GET['difficult'])) {
    $difficult = $_GET['difficult'];
    $db = new DBC();
    $sql = "SELECT code FROM t_game_question WHERE difficult = '" . $difficult . "'";
    $data = $db->fetchData($sql);
}
echo json_encode($data);
?>